﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using EasyClassUI.entity;

namespace EasyClassUI.forms.blog
{
    public partial class groupBlogDisplayCell : UserControl {
        private StudyGroup group;
        public groupBlogDisplayCell(string groupName, string hot1, string hot2, string hot3, string hot4, StudyGroup group)
        {
            InitializeComponent();
            groupNameLabel.Text = groupName;
            titleOne.Text = hot1;
            titleTwo.Text = hot2;
            titleThree.Text = hot3;
            TitleFour.Text = hot4;
            this.group = group;
        }
        private void viewMoreButton_Click(object sender, EventArgs e)
        {
            allRequiredBlogsForm blogsForm = new allRequiredBlogsForm(group);
            blogsForm.Show();
        }
    }
}
